import request from '@/utils/request'
import Qs from 'qs'

const cardApi = {
  // 查询权益卡信息
  getCardInfo: params => request({
    url: `api/getCardInfo?${Qs.stringify(params)}`,
    method: 'get',
    data: { notLoading: true }
  }),
  // 添加激活卡信息
  addCustomer: data => request({
    url: `api/saveCustomer`,
    method: 'post',
    data
  }), 
  // 激活卡信息 
  getActiveCard: params => request({
    url: `api/getActiveCard?${Qs.stringify(params)}`,
    method: 'get',
    data: { notLoading: true }
  }),
  // 获取卡号信息 
  getCardInfoByCardNum: params => request({
    url: `api/getCardInfoByCardNum?${Qs.stringify(params)}`,
    method: 'get',
    data: { notLoading: true }
  }),
 
 
}

export default cardApi
